from posts.models import Post, Category
from django.contrib import admin

class PostAdmin(admin.ModelAdmin):
    list_display = ('title', 'owner', 'type', 'status', 'mdate')
    search_fields = ('title', 'html_content')
    list_filter = ('type', 'status', 'owner', 'cdate', 'mdate')

admin.site.register(Post, PostAdmin)
admin.site.register(Category)